package OperationSystem.day1201.线程安全_syncchronized.线程不干扰;

public class countThread {
    private static class count_Thread extends Thread{
        @Override
        public void run() {
            long n=0;
            for (int i=0;i<1_0000_0000;i++){
                n+=i;
            }
            System.out.println(n);
        }
    }

    public static void main(String[] args) {
        Thread t1=new count_Thread();
        Thread t2=new count_Thread();
        Thread t3=new count_Thread();

        t1.start();
        t2.start();
        t3.start();
    }
}
